package com.woniu.darryringmall.front.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniu.darryringmall.front.entity.GoodsSpec;
import com.woniu.darryringmall.front.mapper.GoodsSpecMapper;
import com.woniu.darryringmall.front.service.GoodsSpecService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GoodsSpecServiceImpl extends ServiceImpl<GoodsSpecMapper, GoodsSpec> implements GoodsSpecService {
    @Autowired
    private GoodsSpecMapper goodsSpecMapper;

    @Override
    public GoodsSpec getBySpecValues(String specValues, int goodsId) {
        return goodsSpecMapper.getByJson(specValues, goodsId);
    }
}
